Optimal. Leaf size=155 \[ -\frac {(a+a \sec (e+f x))^m \tan (e+f x)}{f \left (2+3 m+m^2\right )}+\frac {2^{\frac {1}{2}+m} \left (1+m+m^2\right ) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\sec (e+f x))\right ) (1+\sec (e+f x))^{-\frac {1}{2}-m} (a+a \sec (e+f x))^m \tan (e+f x)}{f (1+m) (2+m)}+\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {3885, 4086,
3913, 3912, 71} \begin {gather*} \frac {2^{m+\frac {1}{2}} \left (m^2+m+1\right ) \tan (e+f x) (\sec (e+f x)+1)^{-m-\frac {1}{2}} (a \sec (e+f x)+a)^m \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\sec (e+f x))\right )}{f (m+1) (m+2)}-\frac {\tan (e+f x) (a \sec (e+f x)+a)^m}{f \left (m^2+3 m+2\right )}+\frac {\tan (e+f x) (a \sec (e+f x)+a)^{m+1}}{a f (m+2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 71
Rule 3885
Rule 3912
Rule 3913
Rule 4086
Rubi steps
\begin {align*} \int \sec ^3(e+f x) (a+a \sec (e+f x))^m \, dx &=\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)}+\frac {\int \sec (e+f x) (a (1+m)-a \sec (e+f x)) (a+a \sec (e+f x))^m \, dx}{a (2+m)}\\ &=-\frac {(a+a \sec (e+f x))^m \tan (e+f x)}{f \left (2+3 m+m^2\right )}+\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)}+\frac {\left (1+m+m^2\right ) \int \sec (e+f x) (a+a \sec (e+f x))^m \, dx}{(1+m) (2+m)}\\ &=-\frac {(a+a \sec (e+f x))^m \tan (e+f x)}{f \left (2+3 m+m^2\right )}+\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)}+\frac {\left (\left (1+m+m^2\right ) (1+\sec (e+f x))^{-m} (a+a \sec (e+f x))^m\right ) \int \sec (e+f x) (1+\sec (e+f x))^m \, dx}{(1+m) (2+m)}\\ &=-\frac {(a+a \sec (e+f x))^m \tan (e+f x)}{f \left (2+3 m+m^2\right )}+\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)}-\frac {\left (\left (1+m+m^2\right ) (1+\sec (e+f x))^{-\frac {1}{2}-m} (a+a \sec (e+f x))^m \tan (e+f x)\right ) \text {Subst}\left (\int \frac {(1+x)^{-\frac {1}{2}+m}}{\sqrt {1-x}} \, dx,x,\sec (e+f x)\right )}{f (1+m) (2+m) \sqrt {1-\sec (e+f x)}}\\ &=-\frac {(a+a \sec (e+f x))^m \tan (e+f x)}{f \left (2+3 m+m^2\right )}+\frac {2^{\frac {1}{2}+m} \left (1+m+m^2\right ) \, _2F_1\left (\frac {1}{2},\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\sec (e+f x))\right ) (1+\sec (e+f x))^{-\frac {1}{2}-m} (a+a \sec (e+f x))^m \tan (e+f x)}{f (1+m) (2+m)}+\frac {(a+a \sec (e+f x))^{1+m} \tan (e+f x)}{a f (2+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.67, size = 123, normalized size = 0.79 \begin {gather*} \frac {(1+\sec (e+f x))^{-\frac {1}{2}-m} (a (1+\sec (e+f x)))^m \left (2^{\frac {3}{2}+m} \left (1+m+m^2\right ) \, _2F_1\left (\frac {1}{2},-\frac {1}{2}-m;\frac {3}{2};\frac {1}{2} (1-\sec (e+f x))\right )+(1+\sec (e+f x))^{\frac {1}{2}+m} (-1+m+(1+2 m) \sec (e+f x))\right ) \tan (e+f x)}{f (2+m) (1+2 m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \left (\sec ^{3}\left (f x +e \right )\right ) \left (a +a \sec \left (f x +e \right )\right )^{m}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \left (\sec {\left (e + f x \right )} + 1\right )\right )^{m} \sec ^{3}{\left (e + f x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^m}{{\cos \left (e+f\,x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________